import requests


class IHRMLoginApi:

    @classmethod
    def ihrm_login(cls,login_body):
        login_url = "http://ihrm-test.itheima.net/api/sys/login"
        login_header = {"Content-Type": "application/json"}
        resp = requests.post(url=login_url,headers=login_header,json=login_body)
        return resp
